import request from '@/api/request.js'
import { formatGetUri } from '@/api/common.js'

const distribution = {}

distribution.getAgentList = params => request.globalRequest(`/distribution/client/agent/getList`, 'POST', params, request.USER)
distribution.getAgentDetail = params => request.globalRequest(`/distribution/client/agent/info`, 'POST', params, request.USER)
distribution.getAgentScore = params => request.globalRequest(`/distribution/client/agent/score`, 'POST', params, request.USER)
distribution.getCustomerList = params => request.globalRequest(`/distribution/client/customer/getList`, 'POST', params, request.USER)
distribution.getCommissionList = params => request.globalRequest(`/distribution/client/commission/getList`, 'POST', params, request.USER)
distribution.getOrderList = params => request.globalRequest(`/distribution/client/order/getList`, 'POST', params, request.USER)

export default distribution